package com.example.demo3.controller;

import com.example.demo3.bean.Line;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.ws.RequestWrapper;

@RestController
public class IndexController {

    @Autowired
    Line line;


    @RequestMapping("/index")
    public Object index() {
        return "index";
    }

    @RequestMapping("/line")
    public Object line() {
        return line;
    }
}
